const webpack = require('webpack');
module.exports = {
    runtimeCompiler: true,
    publicPath: '',
    outputDir: undefined,
    assetsDir: undefined,
    productionSourceMap: undefined,
    parallel: undefined,
    css: undefined,
    devServer: {
        open: true, //浏览器自动打开页面
        host: "127.0.0.1", //如果是真机测试，就使用这个IP
        port: 8911,
        https: false,
        hotOnly: false, //热更新（webpack已实现了，这里false即可）
        proxy: {
            //配置跨域
            '/api': {
                target: "http://127.0.0.1:8888/",
                ws:true,
                changOrigin:true,
                pathRewrite:{
                    '^/api':''
                }
            }
        }
    },
    configureWebpack: {
        plugins: [
            new webpack.ProvidePlugin({
                $:"jquery",
                jQuery:"jquery",
                "windows.jQuery":"jquery"
            })

        ]
    }



}
